//******************************************************//
//														//
//				PersonaFisica.java						//
//														//
//******************************************************//


package Persona;

public class PersonaJuridica extends Persona {
    private Integer matricula;
    private String razonSocial;
    private String respInscripto;    
    

    // Constructor ===================================
    
    public PersonaJuridica(String n, String d, Integer m, String rS, String rI) {
        super(n, d);

        matricula = m;
        razonSocial = rS;
        respInscripto = rI;
    }
    
    // Setters ========================================
 
    public void setMatricula(Integer m) {
        matricula = m;
    }
    
    public void setTipo(String t) {
        razonSocial = t;
    }
    
    public void setRespInscripto(String ri) {
        respInscripto = ri;
    }
    
    // Getters ========================================
    
    public Integer getMatricula() {
        return matricula;
    }
    
    public String getTipo() {
        return razonSocial;
    }
   
    public String getRespInscripto() {
        return respInscripto;
    }
    
    // Otras funciones ================================ 
    
    public String toString() { // Agregar formato?
        return "\nNombre:" + this.getNombre() + " " +
                "\nRazon Social: " + razonSocial + " " +
                "\nMatricula: " + matricula + " " +
                "\nResponsable Inscripto: "+ respInscripto + " " +
                "\nDomicilio: " + this.getDomicilio();
    }
}